
export default class Dep {
    constructor() {
        this.deps = []
    }

    static target = null
    addDep(data) {
        this.deps.push(data)
    }

    notify() {
        this.deps.forEach(dep => dep.update())
    }
}